package com.imddy.springmvcuploadftp.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	
	private static Log log = LogFactory.getLog(PageController.class);

	@RequestMapping("/index")
	public String index() {
		log.info(" Index ");
		return "indexdo";
	}
	
	@RequestMapping("/{page}")
	public String page(@PathVariable String page) {
		log.info("page : " + page);
		return page;
	}
	
	
}
